<?php
session_start();
include "connect.php";
$due=date() + 1209600;
$date = mktime(0, 0, 0, date("m")  , date("d")+14, date("Y"));
?>
<body onload='window.print()'>
<h3> Charlotte United <br>Christian <br>Academy <br>Library</h3> <br><img src='images/logo.png' HEIGHT='50'/>
<?php
foreach($_SESSION['books'] as $key=>$value)
    {
	$book = mysql_query("SELECT * FROM books WHERE barcode = $value");
$book_get= mysql_fetch_array($book)
or die(mysql_error());
$name = $book_get["name"];
    // and print out the values
    echo "<br>$name <br /> is due on ";
	echo strftime("%d %b %Y", $date);
	Echo "<br>";
}

	?>


	<script type="text/javascript">
<!--
function func1() {

    window.location = "sessiondestroy.php"
	}
	setTimeout("func1()", 5000);

//-->
</script>